					
					<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
					<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
					<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
					<div class="post">
						<h2 class="title"><fmt:message key="locanet.imagem.busca.titulo"/></h2>
						<form action="imagem@select.action">
							<table>
								<tr><td><fmt:message key="locanet.imagem.titulo"/></td><td><input maxlength="100" type="text" name="entity.titulo" value="<c:out value="${param['entity.titulo']}"/>"/></td></tr>
								<tr><td><input type="submit" value="<fmt:message key="locanet.butoes.buscar"/>" /></td><td><a class="button" href="imagem@insert.action"><fmt:message key="locanet.butoes.inserir"/></a></td></tr>
							</table>
						</form>
					</div>
					<div class="post">
						<table>
							<tr><th colspan="100%"><fmt:message key="locanet.Filme.imagem"/></th></tr>
							<%@page import="br.com.locanet.bean.impl.Imagem"%>
						<c:choose>
						  <c:when test="${!empty requestScope.entities}">
						  	<c:set var="count" value="${0}" />
						    <tr><c:forEach items="${requestScope.entities}" var="i">
						    	<c:if test="${count%2==0 && count!=0}"><c:out escapeXml="false" value="</tr><tr>"/></c:if>
								<td style="text-align:center">
									<img style="float:none" src="${i.url}" class="busca-imagem"/><br/>
									<c:out value="${i.titulo}"/><br/>
									<a href="imagem@update.action?entity.id=${i.id}"  class="button"><fmt:message key="locanet.entidades.lista.editar"/></a>&nbsp;|&nbsp;
									<a href="imagem@delete.action?entity.id=${i.id}"  class="button"><fmt:message key="locanet.entidades.lista.excluir"/></a>
								</td>
						  		<c:set var="count" value="${count+1}" />
						    </c:forEach></tr>
						    <tr><td colspan="100%" style="text-align:center">
						    	<c:out value="${requestScope.totalPagingResults}" /><fmt:message key="locanet.entidades.lista.resultados.achado"/><br/>
							    <div class="pagination"><c:forEach begin="1" end="${requestScope.totalPagingResults/10+((requestScope.totalPagingResults%10!=0)?1:0)}" var="cont">
							    	<a <c:if test="${ empty param.page&&cont==1||!empty param.page&&param.page==cont }">class="current"</c:if> href="imagem@select.action?entity.titulo=${param.titulo}&page=${cont}"><c:out value="${cont}" /></a>
							    </c:forEach></div>
						    </td></tr>
						  </c:when>
						  <c:otherwise>
						  	<tr><td colspan="100%"><fmt:message key="locanet.entidades.lista.resultados.naoachado"/></td></tr>
						  </c:otherwise>
						</c:choose>
						</table>
					</div>
